class Payload(object):
    """
    Atomgit payloads manager.
    """
    def __init__(self, payload):
        self._payload = payload

    def __getitem__(self, keys):
        if isinstance(keys, str):
            keys = (keys,)

        inc = self._payload
        for k in keys:
            inc = inc[k]

        return inc
